import http from '../http.js'
// 渠道
export const getChannelList = (params) => http.get("base/channelinfo/list", {params})
export const setChannel = (params, type) => http.post("base/channelinfo/"+type, params)
export const channelChangeStatus = (params) => http.post("base/channelinfo/changeStatus", params)
export const deleteChannel = (ids) => http.post("base/channelinfo/delete", ids)
// 授权协议
export const getAgreementList = (params) => http.get("base/agreementinfo/list", {params}) 
export const agreementSave = (params, type) => http.post("base/agreementinfo/"+type, params)
export const changeStatus = (params) => http.post("base/agreementinfo/changeStatus", params)

// 渠道产品
export const getChannelproducList = (params) => http.get("base/channelproductinfo/list", {params})
export const getChannelproducInfo = (id) => http.get("base/channelproductinfo/info/"+id)
export const setChannelproduct = (params, type) => http.post("base/channelproductinfo/"+type, params)
export const channelProductChangeStatus = (params) => http.post("base/channelproductinfo/changeStatus", params)
export const deleteChannelProduct = (ids) => http.post("base/channelproductinfo/delete", ids)

